package com.nado.iims2.blog.dao.manage;

import java.sql.SQLException;
import java.util.List;

import com.nado.iims2.blog.model.manage.Category;
import com.nado.iims2.blog.model.manage.Code;

public interface CodeDAO {
	List<Category> selectCategoryList() throws SQLException;
	int selectCategoryListCount() throws SQLException;
	int selectByCategoryCd(String categoryCd) throws SQLException;
	List<Code> selectCodeList(String categoryCd) throws SQLException;
	int selectByCodeCd(String categoryCd, String code) throws SQLException;
	int insertCategory(Category model) throws SQLException;
	int updateCategory(Category model) throws SQLException;
	
	int insertCode(Code model) throws SQLException;
	int updateCode(Code model) throws SQLException;
	int deleteCode(Code model) throws SQLException;
}
